﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program06
{
    /// <summary>
    /// 实现原价打xxx折
    /// </summary>
   public  class CashRebate:CashSuper 
    {
        private double _moneyRebat = 1.0d;

        public CashRebate(double moneyRebate)
        {
            this._moneyRebat = moneyRebate;
        }
        public override decimal AcceptCash(decimal money)
        {
            return (decimal)money * (decimal )_moneyRebat;
        }
    }
}
